package com.dingreading.cloud.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * acec门票-支付订单
 */
@Data
@Table(value = "nj_ticket_order", dataSource = "ds2")
public class NjTicketOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 添加时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    private String buyerId;

    private String corpName;

    private String name;

    /**
     * 微信用户id
     */
    private String openid;

    private String orderCode;

    /**
     * 支付金额
     */
    private String payAmount;

    /**
     * 支付回调时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payCallbackTime;

    /**
     * 支付方式 微信公众号
     */
    private String payChannel;

    /**
     * 支付状态 0.待支付 1.已支付
     */
    private Integer payStatus;

    private String payStatusName;

    private String payTime;

    /**
     * 支付类型 微信
     */
    private String payType;

    private String tradeNo;

    private String tradeType;

    private String userName;

    private String userPhone;

    /**
     * 门票用户uid
     */
    private String userUid;

    private String year;

    /**
     * 渠道
     */
    private String from;
}
